<template>
  <div>
    <el-table
      border
      stripe
      :data="fieldMappingList">
      <el-table-column sortable prop="id" label="id"/>
      <el-table-column sortable prop="fieldName" label="fieldName"/>
      <el-table-column sortable prop="fieldValue" label="fieldValue"/>
    </el-table>
  </div>
</template>

<script>
export default {
  data(){
    return {
      fieldMappingList : []
    };
  },

  mounted() {
    var _this = this;

    sdk.FieldMappingApi().listByPipelineId({
      pipelineId : _this.$route.query.pipelineId,
    }).then(resp => {
      _this.fieldMappingList = resp.list;
    });
  }
}
</script>
